import request from '@/utils/request'
import { download } from '@/utils/request'

// 修改实名认证
export function updateRealName(data) {
  return request({
    url: '/businessCore/faUserAuthenticationRealName',
    method: 'put',
    data
  })
}

// 删除实名认证
export function delRealName(id) {
  return request({
    url: '/businessCore/faUserAuthenticationRealName/' + id,
    method: 'delete'
  })
}

// 导出实名认证
export function exportRealName(params, fileName) {
  const url = '/businessCore/faUserAuthenticationRealName/export'
  download(
    url,
    params,
    fileName + `_${new Date().getTime()}.xlsx`
  )
}